<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        h1{
            background-color: #ff3;
            width: 500px;
            height: 150px;
        }
        h2{
            background-color: #ff3040;
            width: 500px;
            height: 150px;
        }
    </style>

</head>
<body>
    <h1>你是一个大帅逼</h1>
    <h2>你们都是大帅逼</h2>
    <p>这是一个寂寞的天，下着有些伤心的雨</p>
    <script>
        document.querySelector('h1').onclick = function(){
            alert('出来吧帅逼')
        }
        document.querySelector('h2').onclick = function(){
            alert('出来吧帅逼h2')
        }
    </script>
</body>
</html>